<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>sess内置对象计数器</title>
</head>
<body>
<%! int Num = 0; %>
<%
    if (session.isNew()){
        Num +=1;
        session.setAttribute("Num",Num);
    }
%>
<h1>session计数器</h1>
<P>
    您是第
    <%=session.getAttribute("Num")%>
    个访问本站的用户
</P>
</body>
</html>
